import request from './request'

//获取商品列表
const getproductList = (data) => {
    return request.get({
        url: '/product/productlist',
        data
    })
}

//获取商品信息
const getproductInfo = (data) => {
    return request.get({
        url: '/product/productinfo',
        data: data
    })
}

// 获取商品分类列表
const getProductTageInfo = (data) => {
    return request.get({
        url: '/product/producttage',
        data
    })
}
//获取历史搜索信息
const gethistorySearch = (data) => {
    return request.get({
        url: '/product/gethistory',
        data
    })
}

//搜索商品
const fuzzySearch = (data) => {
    return request.post({
        url: '/product/fuzzySearch',
        data,
    })
}

//添加历史搜索
const historySearch = (data) => {
    return request.post({
        url: '/product/historySearch',
        data
    })
}
export default {
    getproductList,
    getproductInfo,
    getProductTageInfo,
    gethistorySearch,
    fuzzySearch,
    historySearch
}